'use client';
import { motion } from 'motion/react';

export default function LeftToRightView({
  children,
}: { children?: React.ReactNode }) {
  return (
    <motion.div
      initial={{ opacity: 0, x: -50 }}
      animate={{ opacity: 1, x: 0 }}
      transition={{ ease: 'easeOut', duration: 0.2 }}
    >
      {children}
    </motion.div>
  );
}
